package org.example.service;

import org.example.common.model.Book;
import org.example.request.BookRequest;

import javax.xml.bind.ValidationException;

public interface BookService {
    Book getBookById(Long id);
    Long createBook(BookRequest book) throws ValidationException;
    void updateBook(Long id, BookRequest book) throws ValidationException;
    void deleteBook(Long id);
}
